added SSCLI 1.0
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2010 / CSASPNETAJAXHTMLEditorExtender / TestWebSite / Global.asax
blob699c2f4cbb75e5d6aa58d3fc81d77b7ab5c483a2
1 <%@ Application Language="C#" %>
2 <script RunAt="server">
3     /****************************** Module Header ******************************\
4 * Module Name:    Global.asax
5 * Project:        CSASPNETHTMLEditorExtender
6 * Copyright (c) Microsoft Corporation
7
8 * We don't have to create this file, it is only used to catch the exception 
9 * if we don't rebuild the whole solution when we first use it.
10
11 \*****************************************************************************/
12     void Application_Error(object sender, EventArgs e)
13     {
14         Exception err = Context.Server.GetLastError();
15         if (err.Message.IndexOf("AjaxControlToolkit") > -1)
16         {
17             Context.Server.ClearError();
18             Context.Response.Write(
19                 "<html><head><title>CSASPNETHTMLEditorExtender</title></head>" +
20                 "<body><p style='text-align:center'>Please rebuild " +
21                 "the whole solution before you test it!</p></body></html>");
22         }
23     }
24 </script>